﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using Public;
using DAL;

namespace BUS
{
    public class ChuyenKho_BUS
    {
        ChuyenKho_DAL ck_dal = new ChuyenKho_DAL();
        ChuyenKho_PB ck_pb = new ChuyenKho_PB();

        public DataTable LayDSCK()
        {
            return ck_dal.LayDSPhieuChuyen();
        }
        public DataTable TimMaPhieuChuyenKho(string ma)
        {
            return ck_dal.TimMaPhieuChuyenKho(ma);
        }
        public DataTable LayDSNV()
        {
            return ck_dal.LayDSNV();
        }
        public DataTable LayDSVatTu()
        {
            return ck_dal.LayDSVatTu();
        }
        public DataTable LayDSKho()
        {
            return ck_dal.LayDSKho();
        }
        public DataTable LayDSCTChuyenKho()
        {
            return ck_dal.LayDSCTChuyenKho();
        }
        public string NextID_CK()
        {
            return ck_dal.NextID_CK();
        }
        public string NextID_CTC()
        {
            return ck_dal.NextID_CTC();
        }
        public int ThemChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.ThemChuyenKho(ck_pb);
        }
        public int SuaChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.SuaChuyenKho(ck_pb);
        }
        public int ThemCTChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.ThemCTChuyenKho(ck_pb);
        }
        public int SuaCTChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.SuaCTChuyenKho(ck_pb);
        }
        public int XoaCTChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.XoaCTChuyenKho(ck_pb);
        }
        public DataTable TimID(ChuyenKho_PB ck_pb)
        {
            return ck_dal.TimID(ck_pb);
        }
        public int XoaChuyenKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.XoaChuyenKho(ck_pb);
        }
        public int XoaChuyenKho1(ChuyenKho_PB ck_pb)
        {
            return ck_dal.XoaChuyenKho1(ck_pb);
        }
        public DataTable TimMaKho(string mavattu)
        {
            return ck_dal.TimMaKho(mavattu);
        }
        public bool CheckExists(string mavattu, string makho)
        {
            return ck_dal.CheckExists(mavattu, makho);
        }
        public DataTable TimMaTonKho(string mavattu, string makho)
        {
            return ck_dal.TimMaTonKho(mavattu, makho);
        }
        public int LaySLTonKho(string mavattu, string makho)
        {
            return ck_dal.LaySLTonKho(mavattu, makho);
        }
        public int ThemTonKho(ChuyenKho_PB ck_pb)
        {
            return ck_dal.ThemTonKho(ck_pb);
        }
        public int SuaTonKhoXuat(ChuyenKho_PB ck_pb)
        {
            return ck_dal.SuaTonKhoXuat(ck_pb);
        }
        public int SuaTonKhoNhap(ChuyenKho_PB ck_pb)
        {
            return ck_dal.SuaTonKhoNhap(ck_pb);
        }
        public string NextID_TK()
        {
            return ck_dal.NextID_TK();
        }
    }
}
